/**
 * @filename:SysUser 2020年06月11日18点03分04秒
 * @project qigao-soft  V1.0
 * Copyright(c) 2020 luiz Co. Ltd. 
 * All right reserved. 
 */
package com.qigao.fenxiao.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;

/**   
 * @Description:TODO(用户信息实体类)
 * 
 * @version: V1.0
 * @author: luiz
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysUser extends Model<SysUser> {

	private static final long serialVersionUID = 1591869784529L;
	
	@ApiModelProperty(name = "createNo" , value = "创建人")
	private String createNo;
    
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@ApiModelProperty(name = "createTime" , value = "创建时间")
	private Date createTime;
    
	@ApiModelProperty(name = "emailAddr" , value = "邮箱")
	private String emailAddr;
    
	@TableId(value = "id", type = IdType.AUTO)
	@ApiModelProperty(name = "id" , value = "自增主键ID")
	private Integer id;
    
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@ApiModelProperty(name = "lastLoginTime" , value = "最后一次登录时间")
	private Date lastLoginTime;
    
	@ApiModelProperty(name = "memo" , value = "备注")
	private String memo;
    
	@ApiModelProperty(name = "modiNo" , value = "修改人")
	private String modiNo;
    
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@ApiModelProperty(name = "modiTime" , value = "修改时间")
	private Date modiTime;
    
	@ApiModelProperty(name = "nickName" , value = "用户昵称")
	private String nickName;
    
	@ApiModelProperty(name = "password" , value = "登录密码")
	private String password;
    
	@ApiModelProperty(name = "phoneNum" , value = "手机号")
	private String phoneNum;
    
	@ApiModelProperty(name = "status" , value = "状态 Y:有效 N:无效")
	private String status;
    
	@ApiModelProperty(name = "userName" , value = "用户名称")
	private String userName;
    
	@ApiModelProperty(name = "userNo" , value = "用户编号")
	private String userNo;
    
	@ApiModelProperty(name = "version" , value = "版本号")
	private Integer version;
    

	@Override
    protected Serializable pkVal() {
        return this.id;
    }
}
